{% load i18n %}
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		{% block head_base %}
		{% endblock %} <title>{% block title_base %}idit{% endblock %}</title>
		{% block script_base %} <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.js" ></script>
		{% endblock %}
		{% block style_base %}
		<link rel="stylesheet" type="text/css"  href="{{ STATIC_URL }}css/bootstrap.css" />
		<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/main.css" />
		<style>
			footer p {
				text-align: center;
			}
		</style>
		{% endblock %}
	</head>
	<body class="{% block body_class %}{% endblock %}">
		<div class="topbar" data-scrollspy="scrollspy">
			<div class="topbar-inner">
				<div class="container">
					<a class="brand" href="{% url home %}">IDit</a>
					<ul class="nav">
						{% block header_base %}

						{% endblock %}
						<li class="">
							<a href="#">test</a>
						</li>
					</ul>
					<div class="ta_rt">
						{% if user.is_authenticated %} <a href="{% url profile %}">{{ user.userprofile.nickname }}的帐号</a>&nbsp;&nbsp;<a href="{% url logout %}">登出</a>
						{% else %} <a href="{% url login %}">登录</a>&nbsp;&nbsp;<a href="{% url signup %}">注册</a>
						{% endif %}
					</div>
				</div>
			</div>
		</div>
		<div class="container pt40">
			<div class="content">
				{% block content_base %}
				{% endblock %}
			</div>
			<footer>
				<p>
					© anhulife@gmail.com 2011
				</p>
			</footer>
		</div>
	</body>
</html>
